//
//  JCDropTableViewController.h
//  JCDropTableView
//
//  Created by Guo.JC on 17/6/29.
//  Copyright © 2017年 coollang. All rights reserved.
//

#import "YFBaseViewController.h"

typedef NS_ENUM(NSInteger, LeftHandType) {
    ///未设置
    LeftHandTypeUnknow = -1,
    ///正手
    LeftHandTypeFore,
    ///反手
    LeftHandTypeBack
};

@protocol JCDropTableViewDataSource <NSObject>

@optional;
/////左边数量
//- (NSInteger)numberOfSection;
///右边数量
- (NSInteger)numberOfRowsInHandType:(LeftHandType)leftHandType;
///显示文本
- (NSString *)textForCellInHandType:(LeftHandType)leftHandType row:(NSInteger)row;

@end

@protocol JCDropTableViewDelegate <NSObject>

@optional;
///点击某行
- (void)didSelectedIndexPath:(NSIndexPath *)indexPath;
///输入的文本
- (void)conformActionForInputText:(NSString *)inputText selectedIndexPath:(NSIndexPath *)indexPath;
@end

@interface JCDropTableViewController : YFBaseViewController

@property (nonatomic, weak) id <JCDropTableViewDataSource> dataSource;
@property (nonatomic, weak) id <JCDropTableViewDelegate> delegate;
@property (nonatomic, copy) void (^dismissBlock)(BOOL isConform);

- (void)presentView;

@end
